<?php

// Example to the Hearthstone Class.
// Example & code &copy; 2009 Kirth!

include '../HearthStone.class.php';
$hs = new HearthStone("127.0.0.1", "root", "", "hs_logon", "hs_world", "hs_chars");

$hank_arr = $hs->GetCharacterInfo("Hank");

$hank_id =  $hank_arr['guid'];

echo "Hank has GUID # " . $hank_id . "!";

?>

<style type='text/css'>

body {
	background: 	#333333;
	color:			#fefefe;
	font-family:	Arial, Verdana;
}

.wrapper {
	background: 	#222;
	color:			#FFF;
	border:			#111 5px solid;
	padding:		15px;
	margin-bottom:	25px;
}

h2 {
	padding-top:-15px;
}
</style>

	<br /> <br />

<div class='wrapper'>
<h3>Is Hank alive?</h3>
<?php
	if(!$hs->IsDead("Hank"))
		echo "Yes, he is :).";
	else
		echo "No, he's not! :(.";
?>
</div>

<div class='wrapper'>
<h3>Does Hank have achievement #607?</h3>
<?php
	if($hs->HasAchievement($hank_id, 607))
		echo "Yes he does have 10 Coins of Ancestery!";
	else
		echo "No.. Not yet, that is!";
?>
</div>
